﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DevExpress.Xpo;
using WROA.Models.Entitys;

namespace WROA.Models.IServices
{
    public interface ICarService : IService
    {
        XPCollection GetAllApplyCar(string name, string position);
        ApplyCar GetApplyCar(int id);
        Car GetCar(int id);
        void UpdateApplyCarState(int id);
        void UpdateApplyCarIsAgree(int id);
        void SaveCarApprove(CarApprove carApprove);
        bool CarIsFree(int Oid, DateTime startTime, DateTime endTime);
        void SavePassage(ApplyCarData applyCarData, List<string> name);

    }
}